//
import { RootState } from '../type'
interface IFromInfo {
    key: string
    value?: any
}
export default {
    namespaced: true,
    state: {
        formInfo: {
            xxx: 'xxx'
        }
    },
    mutations: {
        setFromInfoItem(state: RootState, params: IFromInfo) {
            console.log('params', params)
            state.formInfo[params.key] = params.value
        },
        getFromInfoItem(state: RootState, params: IFromInfo) {
            return state.formInfo[params.key]
        }
    },
    actions: {}
}
